<?php 
	session_start();
	include('vue/header.php');	
	include('modele/connection.php'); 
?>


<div class="contenu_gauche">

	<?php 
	if (isset($_GET['page'])){
		
		if(isset($_SESSION['ID'])){
		
			switch ($_GET['page'])
			{
			case 'deconnection':
				include('vue/seDeconnecter.php');
				break;
			case 'modif':
				include('vue/m_mod_art.php');
				break;
			case 'nouveau':
				include('vue/v_mod_art.php');
				break;
			case 'mailer':
				include('vue/redacteurs.php');
				break;
			case 'membre':
				include('vue/membre.php');
				break;
			case 'sup-cat':
				include('vue/categories.php');
				break;
			case 'new-cat':
				include('vue/new-cat.php');
				break;
			case 'recherche':
				include('vue/recherche.php');
				break;
			default:
				include('vue/articles.php');
				break;
			}
		}
		else
		{
			switch ($_GET['page'])
			{
			case 'connection':
				include('vue/seConnecter.php');
				break;
			case 'recherche':
				include('vue/recherche.php');
				break;
			default:
				include('vue/articles.php');
				break;
			}
		}
	}
	else
	{
	
		if (isset($_GET["NArticle"])){
			include('vue/article.php');
		}
		else
		{
			include('vue/articles.php');
		} 
	}
	
	?>



<!-- fin de la partie du milieu gauche -->
</div>


  
    <div class="contenu_droit"> 
		<?php include('vue/link-search.php');?>
	  	<?php include('vue/link-cat.php'); ?>
	  	<?php if(isset($_SESSION['ID'])){ include('vue/link-redac.php'); } ?>
	</div>
    
    
<?php include('vue/footer.php'); ?>

